package com.marry.multidatasource.controller;

import com.marry.multidatasource.model.bd.Realestateproof;
import com.marry.multidatasource.service.RealestateproofService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ml
 * @create 2018-01-09--17:02
 */
@RestController
public class RealestateproofController {

    @Autowired
    private RealestateproofService realestateproofService;

    @GetMapping("getRealestateproofById")
    public Realestateproof getRealestaterightById(String keyId){
        return realestateproofService.getRealestateproofById(keyId);

    }
}
